package rostersetting

type RosterSetting struct {
	Id     int    `gorm:"column:id" json:"id"` // 主键
	Roster string `gorm:"column:roster" json:"roster"`
	Type   int    `gorm:"column:type" json:"type"` // 1 白名单 2 黑名单
}

// model init
func New() *RosterSetting {
	return &RosterSetting{}
}

// TableName
func (m *RosterSetting) TableName() string {
	return "roster_setting"
}

func (m *RosterSetting) Mutate(attrs ...RosterSettingAttr) *RosterSetting {
	RosterSettingAttrs(attrs).Apply(m)
	return m
}
